﻿using System;
using System.Collections.Generic;
using System.Text;
using Antlr.StringTemplate;
using Habanero.BO;
using UseCaseManager.BO;

namespace UseCaseManager.Logic
{
    public static class CreateTemplate
    {
        //Attempt to use templates. 
        public static string CreateTemplateProjectUseCases(Project project)
        {
            //simple starter
            //StringTemplate hello = new StringTemplate("Hello, $name$");
            //hello.SetAttribute("name", "World");
            //Console.Out.WriteLine(hello.ToString());

            //generating template in code
            StringTemplate template = new StringTemplate("Project Name: $ProjectName$");
            template.SetAttribute("ProjectName", project.ProjectName);
            return template.ToString();

            ////from .st file
            //StringTemplateGroup group = new StringTemplateGroup("myGroup", "/tmp");
            //StringTemplate query = group.GetInstanceOf("theQuery");
            //query.SetAttribute("column", "name");
            //query.SetAttribute("column", "email");
            //query.SetAttribute("table", "User");

        }
    }
}
